﻿<Fluent:RibbonWindow x:Class="SGT.Views.RemitoEntradaDepositoView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent"
        xmlns:s="http://www.stemasoft.com/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:r="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
        mc:Ignorable="d"
        DataContext="{Binding Remitos, Source={StaticResource Locator}}" ResizeMode="CanResizeWithGrip" Width="700" Height="450">


    <Fluent:RibbonWindow.Resources>
        <ResourceDictionary>
            <BooleanToVisibilityConverter x:Key="boolToVis" />
            
                <ResourceDictionary.MergedDictionaries>
                    <ResourceDictionary Source="/ReuxablesLegacy;component/mercury.xaml" />
                </ResourceDictionary.MergedDictionaries>

            
        </ResourceDictionary>


    </Fluent:RibbonWindow.Resources>

    <DockPanel LastChildFill="True">
        <Fluent:Ribbon DockPanel.Dock="Top" Title="Nuevo ingreso a deposito" >
            <!--Quick Access Toolbar Items-->
            <Fluent:Ribbon.QuickAccessItems>
                <Fluent:QuickAccessMenuItem Target="{Binding ElementName=buttonGreen}"/>
            </Fluent:Ribbon.QuickAccessItems>
            <Fluent:RibbonTabItem Header="Editar" ReduceOrder="(P),(P),(P),(P),(P)" x:Name="EditarTab" >
                <Fluent:RibbonGroupBox Header="Entradas">
                    <Fluent:Button LargeIcon="/SGT;component/Img/save32x32.png"  Header="Guardar" Command="{Binding InsertarRemito}" />
                    <Fluent:Button LargeIcon="/SGT;component/Img/errorIcon.png"  Header="Cerrar"  Command="{Binding IrAEntradaRemitosDeposito}"/>
                </Fluent:RibbonGroupBox>
            </Fluent:RibbonTabItem>
            
        </Fluent:Ribbon>
            <Grid Name="interno"  Background="WhiteSmoke">
            <Grid.RowDefinitions>
                <RowDefinition Height="54*" />
                <RowDefinition Height="41*" />
                <RowDefinition Height="41*" />
                <RowDefinition Height="48*" />
                <RowDefinition Height="73*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="119*" />
                <ColumnDefinition Width="188*" />
                <ColumnDefinition Width="81*" />
                <ColumnDefinition Width="310" />
            </Grid.ColumnDefinitions>
            <Label Content="Deposito:" Height="28" Margin="181,15,0,0" Name="label1" VerticalAlignment="Top" HorizontalAlignment="Left" Width="64" Grid.Column="1" Grid.ColumnSpan="2" />
                        <Label Content="Sector:" Height="28" Margin="3,9,0,0" Name="label2" VerticalAlignment="Top" HorizontalAlignment="Left" Width="51" Grid.Column="2" Grid.Row="1" />
                        <Label Content="Fecha:" Height="28" HorizontalAlignment="Left" Margin="28,17,0,0" Name="label3" VerticalAlignment="Top" />
                        <Label Content="Remito Ref.:" Height="28" HorizontalAlignment="Left" Margin="28,7,0,0" Name="label4" VerticalAlignment="Top" Grid.Row="4" />
                        <Label Content="Proveedor:" Height="28" HorizontalAlignment="Left" Margin="28,9,0,0" Name="label5" VerticalAlignment="Top" Grid.Row="1" />
                        <Label Content="Peso:" Height="28" HorizontalAlignment="Left" Margin="28,7,0,0" Name="label6" VerticalAlignment="Top" Grid.Row="2" />
        <TextBox Height="28" Margin="5,17,0,0" Name="textBox3" VerticalAlignment="Top" Text="{Binding Path=RemitoEnPantalla.Fecha}" HorizontalAlignment="Left" Width="168" Grid.Column="1" />
                        <TextBox Height="28" HorizontalAlignment="Left" Margin="5,7,0,0" Name="textBox4" VerticalAlignment="Top" Width="168" Text="{Binding Path=RemitoEnPantalla.Peso}" Grid.Column="1" Grid.Row="2" />
                        <TextBox Height="28" HorizontalAlignment="Left" Margin="5,9,0,0" Name="textBox6" VerticalAlignment="Top" Width="168" Text="{Binding Path=RemitoEnPantalla.Referencia}" Grid.Column="1" Grid.Row="4" />
            <Label Content="Notas:" Height="28" HorizontalAlignment="Left" Margin="3,7,0,0" Name="label7" VerticalAlignment="Top" Grid.Column="2" Grid.Row="2" />
                        <TextBox Name="textBox7" TextWrapping="Wrap" AcceptsReturn="True" AcceptsTab="True" Text="{Binding Path=RemitoEnPantalla.Notas}" Grid.Column="3" Grid.Row="2" Margin="7,8,21,0" Height="130" VerticalAlignment="Top" Grid.RowSpan="3" />
                        <ComboBox Height="28" Margin="5,9,0,0" Name="comboBox1" VerticalAlignment="Top" ItemsSource="{Binding Path=Proveedores}" SelectedItem="{Binding Path=RemitoEnPantalla.ProveedorOrigen}" DisplayMemberPath="Nombre" HorizontalAlignment="Left" Width="168" Grid.Column="1" Grid.Row="1" SelectedIndex="0" />
                        <Label Content="Mercaderia:" Height="28" HorizontalAlignment="Left" Margin="28,9,0,0" Name="label8" VerticalAlignment="Top" Width="75" Grid.Row="3" />
                        <TextBox Height="28" HorizontalAlignment="Left" Margin="5,11,0,0" Name="textBox5" VerticalAlignment="Top" Width="168" Text="{Binding Path=RemitoEnPantalla.SectorUsado.TipoMercaderia.Nombre}" Grid.Column="1" Grid.Row="3" />
        <Label Content="{Binding Path=DepositoEnUso.Nombre}" Height="28" HorizontalAlignment="Left" Margin="7,15,0,0" Name="label9" VerticalAlignment="Top" Width="282" BorderBrush="LightSlateGray" Grid.Column="3" />
            <ComboBox Margin="7,9,21,6" Name="comboBox2" ItemsSource="{Binding Path=DepositoEnUso.ColeccionSectores}" DisplayMemberPath="Nombre" Grid.Column="3" Grid.Row="1" SelectedItem="{Binding Path=RemitoEnPantalla.SectorUsado}" Height="28" SelectedIndex="0" />
    </Grid>
    </DockPanel>
</Fluent:RibbonWindow>
